package net.lainiao.other.demo1;

/**
 * Created by Administrator on 2017/3/4.
 */
public class PersonFactory {
    private  static Person person;
    public static Person getInstall(){
        if(person==null){
            synchronized (PersonFactory.class){
                if(person==null){
                    person=new Person();
                }
            }
        }
        return person;
    }
}
